package Eksamensporjekt1sem;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JList;
import java.awt.BorderLayout;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class Restance {

	private JFrame frmRes;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Restance window = new Restance();
					window.frmRes.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Restance() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmRes = new JFrame();
		frmRes.setBounds(100, 100, 450, 300);
		frmRes.getContentPane().setLayout(null);
		
		JList list = new JList();
		list.setBounds(0, 0, 434, 200);
		frmRes.getContentPane().add(list);
		
		JButton btnFjernMedlem = new JButton("Fjern medlem");
		btnFjernMedlem.setBounds(10, 232, 127, 23);
		frmRes.getContentPane().add(btnFjernMedlem);
		
		JButton btnOpdater = new JButton("Opdater");
		btnOpdater.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			OpretMedlem nu = new OpretMedlem();
			nu.getTextFieldFornavn().getText();
			}
		});
		btnOpdater.setBounds(10, 211, 97, 23);
		frmRes.getContentPane().add(btnOpdater);
	}

	public JFrame getFrmRes() {
		return frmRes;
	}

	public void setFrmRes(JFrame frmRes) {
		this.frmRes = frmRes;
	}

}
